package com.spring.appservice.web.service;

import com.spring.appservice.web.model.*;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * Created by wojunyu on 2015/7/26.
 */
public interface AppQuestService {

    List<Quest> selectQuestByType(Map m);
    List<Quest> selectExamQuestById(Map m);
    List<Map> selectRuleDetail(Map m);
    ArrayList selectgetExamHistory(String user_id,String baby_id,long skip,long rows);
    List<Quest> getExamHistoryDetail(String type_id);
    List<Quest> getExamHistoryDetailComplete(String score_id,String quest_type_id);

    //插入试卷
    int insertExam(Map m);
    //插入试卷题目
    int insertExamQuestions(Map m);

    String CreateExamByRule(String UID,String rule_setting_id,String exam_title,List<Map> ruleList,String user_id,String c_baby_id);


    List<CommitExamGetNext> commitExam(String c_user_id,String c_baby_id,String exam_id,String question_index,String question_id,String user_option_id,String next_index);
    ArrayList  getNotCompleteExamHistory(String exam_id);
    int  commitExamAll(String exam_id);
    
    List<Baby> getBabyByParent(String c_user_id);
    
}
